﻿using System;
using System.Net;
using Bing;
using example;


namespace BingSearchAzureAPI
{
    class Program
    {
        static void Main(string[] args)
        {
            const string bingKey = "a2B7k+ieyMkoNdoM0Gkvmf/q+iRmNpdyx4e28bqDPPU";
            String search = "\"Dual-SIM, 3G Data Capable, 4G Data Capable, Air Gesture, Bluetooth Enabled, Fingerprint Sensor, Iris Scanning, Near Field Communication, Global Ready, GPS, Internet Browser, Music Player, Push to Talk, QWERTY Keyboard, Speakerphone, Touchscreen, TTY Compatible, Wi-Fi Capable, Wireless Charging, Voice-Activated Dialing\"";
            BotDetectorA bt = new BotDetectorA(search, bingKey);
            if (bt.Analyze())
                Console.WriteLine("Is bot!");
            else
                Console.WriteLine("Is not bot!");
            Console.ReadKey();

        }
    }
}